<?php
	foreach( $arOut as $messType=>$messArr )
		if (count( $messArr )>0){
		echo '<p class="'.$messType.'">';
			print( implode("<br />", $messArr ) );
		echo '</p>';	
	}
?>